#ifndef SUGGESTCOMPLETION_H
#define SUGGESTCOMPLETION_H

#include <QtGui>

class SuggestCompletion : public QObject
{
	Q_OBJECT

public:
	SuggestCompletion(QLineEdit *parent = 0);
	~SuggestCompletion();
	bool eventFilter(QObject *obj, QEvent *ev);
	void showCompletion(const QStringList &choices);

public slots:

	void doneCompletion();

private:
	QLineEdit *editor;
	QTreeWidget *popup;
};
#endif // SUGGESTCOMPLETION_H
